/*
 * StudentMotherDb.h
 *
 *  Created on: 26 Apr 2010
 *      Author: User
 */

#ifndef STUDENTMOTHERDB_H_
#define STUDENTMOTHERDB_H_


#include "../IStudentParentDb.h"

class StudentMotherDb: public IStudentParentDb {
public:
	StudentMotherDb();
	StudentMotherDb(const string *dbName, const string *user, const string *passwd);
	virtual ~StudentMotherDb();
	/**
	 * Insert a new afm for Mother
	 * @param afm, the value of afm
	 * @return boolean
	 */
	virtual bool saveAfm(const string *afm) const;
	/**
	 * Set/upadte Mothers name by afm
	 * @param afm, the value of afm
	 * @param name, the value of name
	 * @return boolean
	 */
	virtual bool saveName(const string *afm, const string *name) const;
	/**
	 * Set/update Mothers occupation by afm
	 * @param afm, the value of afm
	 * @param occupation, the value of occupation
	 * @return boolean
	 */
	virtual bool saveOccupation(const string *afm, const string *occupation) const;
	/**
	 * Set/update the fk Student_M_afm in table Student by aem
	 * @param afm, the value of afm
	 * @param aem, the value of aem
	 * @return boolean
		 */
	virtual bool saveStudentMother(const string *afm, const string *aem) const;
	virtual bool saveLastName(const string *afm, const string *lastName) const;
	virtual bool isFind(const string *afm) const;
	virtual bool deleteMother(const string *afm) const;
};

#endif /* STUDENTMOTHERDB_H_ */
